﻿using Digitalmes.Domain.Mes;

namespace Digitalmes.Sugar.SeedData;

internal sealed class MdUnitSeedData : ISqlSugarEntitySeedData<MdUnit>
{
    [IgnoreUpdate]
    public IEnumerable<MdUnit> HasData()
    {
        return new MdUnit[]
        {
            new MdUnit { Id = 1300000000001, UnitName = "pcs", UnitCode = "pcs", Remark = "", CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
            new MdUnit { Id = 1300000000002, UnitName = "kg", UnitCode = "kg", Remark = "", CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
            new MdUnit { Id = 1300000000003, UnitName = "g", UnitCode = "g", Remark = "", CreateUser = "admin", CreateTime = DateTime.Parse("2022-02-22 00:00:00") },
        };
    }
}
